<?php

namespace app\validate;

use share\validate\SceneValidate;

class LanguageTypeValidate extends SceneValidate{
    protected $rule = [
        'language' => 'require|length:1,20',    
        'name' => 'require|length:1,30',       
    ];   
    
    protected $sceneRules = [
        'edit' => [
            'language' => 'require|length:1,20',    
            'name' => 'length:1,30',   
        ]
    ];

    protected $scene = [
        'add' => ['language','name'],
        'edit' => ['language','name'],
        'del' => ['language'],
    ];
}